/**
 * Project Name:wxmarket
 * File Name:UserController.java
 * Package Name:com.ruiyin.controller
 * Date:2016-5-25下午01:58:43
 * Copyright (c) 2016, 江苏瑞银科技有限公司 All Rights Reserved.
 *
*/

package com.ruiyin.controller;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
import com.ruiyin.bean.SysUser;
import com.ruiyin.interceptor.BaseInterceptor;

/**
 * ClassName:UserController <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2016-5-25 下午01:58:43 <br/>
 * @author   昕昕
 * @version  
 * @see 	 
 */
@Before(BaseInterceptor.class)
public class UserController extends Controller {
	
	public void index() {
		this.render("login/user/User_list.jsp");
	}
	
	
	public void save(){
		SysUser users = new SysUser();
		users.set("USER_ID", " SEQUENCE_SYS_ROLE_ID.nextval");//nextval必须小写
		users.set("username", "张三");
		users.set("password", "sdfsdfs");
		users.save();
	}
	
	public void update(){
		SysUser users = new SysUser();
		users.set("USER_ID", "2");//nextval必须小写
		users.set("username", "张三111");
		users.set("password", "sdfsdfs111");
		users.delete();
		renderJson();
	}
	
	
	
	
	
	
	
	
}

